jQuery("#dbm_product_browse").jqGrid({        
  url: '/store/rpc?q=product',
	datatype: "json",
	height: 250,
  colNames:['ID','供應商','產品名','規格編號'
    ,'品牌', '規格','Tag'
    ,'進貨價','參考價','存量','安全存量', '註記'],
  colModel:[
    {name:'id',index:'__key__', width:55},
    {name:'supplier',index:'supplier', width:90, editable:false},
    {name:'name',index:'name', width:90,editable:true,editoptions:{size:25}},
    {name:'product_sn',index:'product_sn', width:90,editable:true,editoptions:{size:25}},
    {name:'brand',index:'brand', width:90,editable:true,editoptions:{size:25}},
    {name:'spec',index:'spec', width:90,editable:true,editoptions:{size:25}},
    {name:'tag',index:'tag', width:90,editable:true,editoptions:{size:25}},
    {name:'purchase_price',index:'purchase_price', width:80,editable:true, align:"right",editoptions:{size:25}},
    {name:'ref_price',index:'ref_price', width:80,editable:true, align:"right",editoptions:{size:25}},
    {name:'stock_quantity',index:'stock_quantity', width:80,editable:true, align:"right",editoptions:{size:25}},
    {name:'safe_quantity',index:'safe_quantity', width:80,editable:true, align:"right",editoptions:{size:25}},
    {name:'note',index:'note', width:100, sortable:false,editable: true,edittype:"textarea", editoptions:{rows:"2",cols:"20"}}
  ],
  jsonReader: {
    repeatitems : false,
    id: "0"
  },
  rowNum:10,
  rowList:[10,20,30],
  pager: jQuery('#dbm_product_browse_page'),
  imgpath: gridimgpath,
	caption: "出貨中商品管理介面"
}).navGrid('#dbm_product_browse_page',{add:false,edit:false,del:false, search:true});
